package sakila.bll;

import java.util.List;

import sakila.commonprocess.ProcessResult;
import sakila.dal.film.dao.FilmDAO;
import sakila.dto.film.BaseDTO;
import sakila.dto.film.FilmDTO;
import sakila.sakilaexcetion.SakilaException;

public class FilmBiz implements IBiz
{

	/** The reference to access to data access layer. */
	private FilmDAO filmDAO = null;

	/**
	 * Instantiates a new film biz.
	 */
	public FilmBiz()
	{
		this.filmDAO = new FilmDAO();
	}

	public ProcessResult delete(int idToDelete) throws SakilaException
	{
		// TODO Auto-generated method stub
		return null;
	}

	@SuppressWarnings("unchecked")
	public List<FilmDTO> getAll() throws SakilaException
	{
		return this.filmDAO.getAll();
	}

	@SuppressWarnings("unchecked")
	public FilmDTO getById(int id) throws SakilaException
	{
		// TODO Auto-generated method stub
		return null;
	}

	public ProcessResult insert(BaseDTO objToInsert) throws SakilaException
	{
		// TODO Auto-generated method stub
		return null;
	}

	public ProcessResult update(BaseDTO objToInsert) throws SakilaException
	{
		// TODO Auto-generated method stub
		return null;
	}

	public ProcessResult validateToInsert(BaseDTO objToInsert) throws SakilaException
	{
		// TODO Auto-generated method stub
		return null;
	}

	public ProcessResult validateToUpdate(BaseDTO objToInsert) throws SakilaException
	{
		// TODO Auto-generated method stub
		return null;
	}

}
